//
//  ZZdateController.m
//  pacc
//
//  Created by 测试 on 2018/6/19.
//  Copyright © 2018年 测试. All rights reserved.
//

#import "ZZdateController.h"
#import <JTCalendar.h>
@interface ZZdateController ()
    {
        //有事件的时间数组，我暂时没用到
        NSMutableDictionary *_eventsByDate;
        //选中的时间数组，添加时间到这个数组里则可以显示红圈，也就是选中状态
        NSMutableArray *_datesSelected;
        //设置选中的模式，YES是选中模式，NO是全部不选中。
        BOOL _selectionMode;
    }
    

@property (strong, nonatomic) JTCalendarManager *calendarManager;
@property (strong, nonatomic)  JTHorizontalCalendarView *calendarContentView;

@end

@implementation ZZdateController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.calendarManager = [JTCalendarManager new];
    //设置需要显示月份的View,我这里是自定义的，所以注释掉了
    //[self.calendarManager setMenuView:self.CalendarMenuView];
    self.calendarContentView = [[JTHorizontalCalendarView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 216)];
    //设置需要显示日历的View
    [self.calendarManager setContentView:self.calendarContentView];
    //在日历显示初始化的时候就需要
    [self.calendarManager setDate:[NSDate date]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
